package com.chb.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.annotation.MultipartConfig;
import java.io.InputStream;

/**
 * @author ：njh
 * @date ：Created in 2023/10/8 9:55
 * @description：文件操作
 * @modified By：
 * @version:
 */
public interface FileService {

    /**
     * @create by: njh
     * @description: 头像的上传
     * @create time: 2023/10/8 11:18
     * @param file
     * @return
     */
    public String upload(MultipartFile file);

    /**
     * @create by: njh
     * @description: 头像上传的取消,删除已经上传的图片
     * @create time: 2023/10/8 11:18
     * @param pictureUrl
     * @return
     */
    public void removeFile(String pictureUrl);
}